package com.study.others.objectOpe;

import java.io.Serializable;

/**
* @Name: Person
* @Description: Person测试类
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-1-16 下午10:45:32 
* @Version: V1.0
 */
public class Person implements Serializable {
	
	private static final long serialVersionUID = 5357674375726435311L;
	
	private String name ;
	
	//transient：用来指定不希望被序列化的成员变量
	private transient int age ;
	
	public Person() {
	}

	public Person(String name, int age) {
		this.name = name;
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
	@Override
	public String toString() {
		return "Person [name=" + name + ", age=" + age + "]";
	}
}
